home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tools / utils / smc_tt1 / tcpbind.h < prev    next >
Text File  |  1995-11-25  |  770b  |  27 lines

  1. #define get_ip_addr(a,b)        gemdos(612,a,b)
  2. #define tcp_open(a,b,c,d,e)        gemdos(630,a,b,c,d,e)
  3. #define tcp_write(a,b,c,d,e)    gemdos(631,a,b,c,(char)d,(char)e)
  4. #define tcp_read(a,b,c)            gemdos(632,a,b,c)
  5. #define    tcp_close(a)            gemdos(633,a)
  6. #define tcp_abort(a)            gemdos(634,a)
  7. #define tcp_stat(a,b)            gemdos(635,a,b)
  8. #define udp_open(a)                gemdos(620,a)
  9. #define udp_close(a)            gemdos(621,a)
  10. #define udp_read(a,b,c)            gemdos(622,a,b,c)
  11. #define udp_write(a,b,c,d)        gemdos(623,a,b,c,d)
  12. #define udp_open_callback(a,b)    gemdos(624,a,b)
  13.  
  14. typedef struct sdest
  15. {
  16.     unsigned int        Port;
  17.     unsigned char        IPAddr[4];
  18. } DESTI;
  19.  
  20. typedef struct
  21. {
  22.     unsigned int        Port;
  23.     unsigned long        IPAddr;
  24. } DESTIL;
  25.  
  26. typedef int (*UDP_UPCALL)(char *pkt,short len, DESTIL *dest);
  27.